IRC log of #maemo for Monday, 2019-01-14

*** mavhc has joined #maemo00:19
*** mavhc has quit IRC00:25
*** louisdk has quit IRC00:31
*** heroux has quit IRC00:38
*** mavhc has joined #maemo00:44
*** mavhc has quit IRC00:53
*** Pali has quit IRC01:03
*** frals has quit IRC01:07
*** thuttu77 has quit IRC01:07
*** frals has joined #maemo01:07
*** frals has joined #maemo01:07
*** thuttu77 has joined #maemo01:08
*** mavhc has joined #maemo01:32
*** mavhc has quit IRC01:38
*** mavhc has joined #maemo01:46
*** mavhc has quit IRC01:51
*** mavhc has joined #maemo01:55
*** florian_kc has quit IRC02:02
*** atk has quit IRC02:02
*** atk has joined #maemo02:03
DocScrutinizer05http://wiki.maemo.org/Community_Council02:08
DocScrutinizer05warfare: ping02:09
DocScrutinizer05warfare: spam in http://maemo.org/news/planet-maemo/rss.xml02:09
*** mavhc has quit IRC02:09
DocScrutinizer05xes: ^^^02:09
DocScrutinizer05warfare: xes: I have no idea if planet-maemo is of any use, or been of any use during last 10 years02:11
DocScrutinizer05tbh I don't even understand what's the intended purpose. Some maemo specific filter bubble of sorts?02:14
xesDocScrutinizer05: there is a task collecting news from maby blogs and other sources02:22
xes*many02:22
*** tm has quit IRC03:18
*** tm has joined #maemo03:21
*** mavhc has joined #maemo03:22
*** mavhc has quit IRC03:32
*** Kabouik has quit IRC03:39
*** Kabouik has joined #maemo03:46
*** mavhc has joined #maemo03:48
*** mavhc has quit IRC03:52
*** louisdk has joined #maemo03:53
*** Kabouik has quit IRC03:54
*** mavhc has joined #maemo03:57
*** louisdk has quit IRC03:58
*** mavhc has quit IRC04:09
*** mavhc has joined #maemo04:20
*** mavhc has quit IRC04:26
*** mavhc has joined #maemo04:52
pabs3DocScrutinizer05: its a very common thing to have for Linux distros, for eg https://planet.debian.org/ http://planet.gnome.org/ http://planetkde.org/ etc04:54
*** mavhc has quit IRC05:04
*** ketas has quit IRC05:32
*** mavhc has joined #maemo05:41
*** ketas has joined #maemo05:42
*** mavhc has quit IRC05:51
*** mavhc has joined #maemo06:10
*** mavhc has quit IRC06:19
*** mavhc has joined #maemo06:37
*** mavhc has quit IRC06:48
*** mavhc has joined #maemo06:55
*** valerius has quit IRC06:56
*** grinsekatze has quit IRC06:57
*** mavhc has quit IRC07:04
*** mavhc has joined #maemo07:13
*** mavhc has quit IRC07:22
*** valerius has joined #maemo07:22
*** merlin1991 has quit IRC07:25
*** merlin1991 has joined #maemo07:25
*** spiiroin has quit IRC07:33
*** APic has quit IRC07:33
*** APic has joined #maemo07:39
*** mavhc has joined #maemo07:44
*** Kilroo has quit IRC07:45
*** mavhc has quit IRC07:49
*** heroux has joined #maemo07:56
*** mavhc has joined #maemo07:56
*** mavhc has quit IRC08:02
*** mavhc has joined #maemo08:11
*** mavhc has quit IRC08:21
*** spiiroin has joined #maemo08:34
*** mavhc has joined #maemo08:44
*** mavhc has quit IRC08:48
*** mavhc has joined #maemo08:59
*** mavhc has quit IRC09:04
*** mavhc has joined #maemo09:08
*** grinsekatze has joined #maemo09:09
*** mavhc has quit IRC09:21
*** dafox has joined #maemo09:23
*** mavhc has joined #maemo09:29
*** mavhc has quit IRC09:35
*** mavhc has joined #maemo09:44
*** mavhc has quit IRC09:49
*** Venemo has joined #maemo09:51
*** florian_kc has joined #maemo09:53
*** dafox has quit IRC09:53
*** mavhc has joined #maemo09:57
*** florian_kc has quit IRC09:59
*** mavhc has quit IRC10:11
*** spiiroin has quit IRC10:12
*** Venemo has quit IRC10:23
*** Venemo has joined #maemo10:26
*** mavhc has joined #maemo10:29
*** ceene has quit IRC10:35
*** Venemo has joined #maemo10:40
*** ceene has joined #maemo10:42
*** mavhc has quit IRC10:51
*** mavhc has joined #maemo10:59
*** spiiroin has joined #maemo11:13
*** mavhc has quit IRC11:21
*** florian has joined #maemo11:23
*** Kabouik has joined #maemo11:24
*** Venemo has quit IRC11:29
*** mavhc has joined #maemo11:51
*** mavhc has quit IRC11:58
*** mavhc has joined #maemo12:03
*** jskarvad has joined #maemo12:12
*** mavhc has quit IRC12:12
*** eMHa has quit IRC12:27
*** mavhc has joined #maemo12:35
*** mavhc has quit IRC12:50
*** eMHa has joined #maemo12:57
*** mavhc has joined #maemo13:01
*** mavhc has quit IRC13:11
*** mavhc has joined #maemo13:16
*** cyteen__ has quit IRC13:34
*** mavhc has quit IRC13:48
*** mavhc has joined #maemo13:53
*** jskarvad has quit IRC13:55
*** jskarvad has joined #maemo13:55
*** mavhc has quit IRC13:57
*** mavhc has joined #maemo14:25
DocScrutinizer05I think it's pointless14:29
DocScrutinizer05particularly when unredacted14:29
DocScrutinizer05SPAM QED14:29
*** mavhc has quit IRC14:31
*** mavhc has joined #maemo14:55
*** RedM has quit IRC15:00
*** RedW has joined #maemo15:01
*** mavhc has quit IRC15:12
*** mavhc has joined #maemo15:22
*** Venemo has joined #maemo15:26
*** mavhc has quit IRC15:27
*** luke-jr has quit IRC15:27
*** mavhc has joined #maemo15:40
*** CatButts has joined #maemo15:42
CatButtsmeow15:42
*** mavhc has quit IRC15:49
*** luke-jr has joined #maemo15:56
*** cyteen_ has joined #maemo15:57
*** mavhc has joined #maemo16:06
*** mavhc has quit IRC16:10
ceeneI'm having a bit of trouble with one linux related thing, maybe someone has an idea16:21
ceeneI'm executing via execv something like this: /bin/sh -c "producer | consumer"16:21
ceenewith that, I have the PID of /bin/sh16:22
ceenebut if I kill this sh instance, both producer and consumer keep on running16:22
KotCzarnyyou can always do 2 execvs' and copy data between processes yourself16:22
ceeneshouldn't sh be killing its children?16:22
ceenei'd rather not do that16:22
ceene:/16:22
KotCzarnymaybe it waits for the children to finish16:23
inzKotCzarny, no need to copy data manually, one can just pipe()16:23
ceenethese children won't end unless someone kills them, that's the reason I want to kill sh16:24
ceeneI expected them to die, but it seems they are happy to keep on living forever16:24
KotCzarnydo the killed sh vanishes from process list?16:25
ceeneyes, it becomes a zombie, and after waitpid it disappears16:27
inzSom'n like htis: int pfd[2]; pipe(pfd); if (!(prodpid = fork())) { close(STDOUT_FILENO); dup2(pfd[1], STDOUT_FILENO); producer execve; } if (!(conpid = fork())) { close(STDIN_FILENO); dup2(pfd[0], STDIN_FILENO); consumer execve; } close(pfd[0]); close(pfd[1]);16:27
KotCzarnykill the producer or receiver then?16:27
inzI believe the problem was that their pids are not known16:28
ceeneinz: exactly16:29
ceenemy C program only knows about sh, because I fork+execv, so I know the pid of the child I create, but I do not know nothing of the children sh begets16:29
KotCzarnycan any of them be modified to create pid file?16:30
*** Venemo has quit IRC16:30
ceenei control both of them, yes16:30
KotCzarnymight be easiest way, or even control pipe to accept msgs/signals16:31
ceeneisn't there any way for sh to just kill his own children when it dies?16:31
KotCzarnymaybe your apps detach from sh?16:32
ceenenop, none of them fork() or daemon()16:32
inzThe behavior might also depend on the shell16:32
inzIs the pipe() solution above too complex for you?16:34
ceeneno, I could do it, but I have several processes that I launch via fork+execv, that are later on managed by a few functions16:35
ceeneso I would have to make a special case out of this process16:35
KotCzarnymake the producer or receiver create known pid file16:36
KotCzarnythen kill the pid when needed16:36
inzIt should be enough for you to just kill one end or the other, they should mutually destruct on SIGPIPE when one end goes away16:36
ceenethat still forces me to make this a particular case that isn't managed the same way I managed the other processes16:36
KotCzarnycan producer spawn receiver?16:37
ceeneI could do that, yes16:37
KotCzarnythat way you could evecve it directly16:38
ceeneeverything seems inelegant to me16:40
KotCzarnyall depends on your schedule and budget i guess16:40
ceeneIf pid is less than -1, then sig is sent to every process in the process group whose ID is -pid.16:41
KotCzarnyhttps://unix.stackexchange.com/questions/124127/kill-all-descendant-processes16:42
KotCzarnymay be related?16:42
ceenefork()+exec() /bin/sh -c 'a | b'... I guess a, b, sh would belong to the same process group16:42
ceenebut would the parent of sh be a member of the same process group?16:42
ceeneah, I can set process group by myself via setpgrp16:44
KotCzarnyyou can also make shell return descendant pids on kill16:44
KotCzarnyand use it16:44
KotCzarnyanyway, time to go home16:45
ceenethanks for your ideas!16:45
ceenethe process group trick did it!16:58
ceene        if(!(a->pid = fork())) {16:58
ceene+               /* Move child to a new process group so we can kill all its descendents via kill -pid */16:58
ceene+               setpgid(a->pid, 0);16:58
ceene16:58
ceene-               kill(a->pid, sig);16:58
ceene+               /* Negative PID means sending signal to all members of the group PID */16:58
ceene+               kill(-a->pid, sig);16:58
ceeneso I can keep exactly the same code for everything, and if I face later on some other thing that must create children, they will die as well16:59
ceeneand I can forget about that16:59
ceene:)16:59
KotCzarny:)16:59
KotCzarnynothing like sharing problem and resolving it by mind reset16:59
ceenetotally, you were a pretty fine rubber duck, you even talked back with useful remarks17:00
ceenenow I have more of a philosophical problem...17:00
KotCzarnytry porto17:00
ceenei'm basically creating a init system by scratch17:00
ceenes/by/from/17:01
infobotceene meant: i'm basically creating a init system from scratch17:01
KotCzarnywhy not systemd?17:01
KotCzarny;)17:01
ceenelol17:01
ceenethat's my philosophical problem, I don't want to do that17:01
KotCzarnybut there are few real ones to choose from17:01
KotCzarnyincluding busybox's simple inittab17:02
ceenemost things I'm running from busybox init17:03
ceenebut several things I'm running via this custom initd17:04
ceenei've implemented something akin to runlevels, because this system may be running in one out of several different modes17:04
inzDoesn't every good unix geek write at least 1) a music player, 2) a window manager, 3) an irc client, 4) a compiler, 5) a kernel and 6) an init replacement; not necessarily in that order17:04
ceenebut this also initializes several segments of shared memory, configures an FPGA and more17:05
KotCzarnyi did #117:06
KotCzarnythe rest wasnt needed custom versions17:06
KotCzarny(for me)17:06
ceenethis thing also receives RPC messages requesting changes in configuration, etc17:07
ceenesomedays I think this is great, somedays I think it's doing too much in one place17:07
ceeneand I'm having some kind of imposter syndrome related to systemd (am I making the same mistakes that they do?)17:08
KotCzarnyas long you are not on the mission to rule the world with your offspring, no17:09
ceeneno, I just need this thing to manage different pieces of hardware so in the end the product does what it has to do: be a radar17:09
ceeneanything out of that, I'm not interested in17:10
*** mavhc has joined #maemo17:10
KotCzarnymain problem with evild is being shoved to everyone's throats17:12
KotCzarny(apart from being written badly by an idiot)17:12
CatButtsdon't put that in mouth17:14
CatButtsyou don't know where it's been!17:14
KotCzarnyi think you've missed 'shoved' part17:17
*** mavhc has quit IRC17:21
*** mavhc has joined #maemo17:32
*** sunshavi has quit IRC17:37
*** sunshavi has joined #maemo17:38
*** mavhc has quit IRC17:40
*** mavhc has joined #maemo17:48
*** sunshavi has quit IRC17:52
*** sunshavi has joined #maemo17:53
*** mavhc has quit IRC17:54
*** mavhc has joined #maemo18:05
*** Venemo has joined #maemo18:08
*** mavhc has quit IRC18:27
*** mavhc has joined #maemo18:30
*** tryagain has joined #maemo18:32
*** mavhc has quit IRC18:34
*** mavhc has joined #maemo18:38
*** mavhc has quit IRC18:44
DocScrutinizer05ceene: https://unix.stackexchange.com/questions/14815/process-descendants18:46
DocScrutinizer05ooh, somebody beat me to it18:46
*** mavhc has joined #maemo18:53
DocScrutinizer05ceene: *usually* your children processes share STDIN, STDOUT, STDERR and thus when parent quits they receive SIGHUP(?)18:55
DocScrutinizer05or your parent keeps thrack of its children by memorizing their PIDs and sending them a kill signal when/before the parent quits18:57
*** mavhc has quit IRC18:57
DocScrutinizer05or you use a unique new program group for your process and its children, teher are ways to send signals to all processes of a pg18:58
*** florian_kc has joined #maemo18:59
DocScrutinizer05or you might even use cgroups, like systemd does18:59
DocScrutinizer05or run the process under monitor, though that's a total overkill and often fails (can't monitor monitors afaik)19:00
*** Pali has joined #maemo19:00
DocScrutinizer05see strace -f for the latter19:00
*** mavhc has joined #maemo19:02
DocScrutinizer05inz: I only wrote a shell19:03
DocScrutinizer05not on linux though but on BS-M which woefully lacked anything akin a shell of sorts19:04
*** dafox has joined #maemo19:08
DocScrutinizer05this thing even had weird terminals (DS-075) where youz can move around the cursor and edit on screen like you want, and there are "DÜ", "DÜZ" "DÜM" keys for DatenÜbertragung (Zeile/Marke) "datatransfer (all)", "datatransfer line of cursor" and "datatransfer from mark to cursor"19:09
*** Kabouik has quit IRC19:09
DocScrutinizer05NB that DÜ DÜZ and DÜM were the only key<s that actually triggered a data transfer from terminal to computer19:12
*** mavhc has quit IRC19:14
DocScrutinizer05there was a so called fullscreen mode(?) on a virtual second screen which transferred every key as it got pressed, but that mode and screen was reserved for the fullscreen editor19:14
DocScrutinizer05you'll have a hard time finding any info about BS-M, so look for AMBOSS-M or the big brother BS-100019:22
DocScrutinizer05the whole thing looked very "IRCy", commands to OS were like "/BOOT" or "/DATE" or "/START prognam" and a line starting with ":prognam:" established a dialog between that process "prognam" and the terminal sending it. All output from prognam showed on that terminal from then on, and all input from that terminal went to prognam until another ":progTWO:"19:39
DocScrutinizer05users? owners? passwords & login? unknown ;-P19:41
*** Venemo has quit IRC19:41
DocScrutinizer05the program FILE was like a combo of `cp`, `mv` `rm` and `ls`/`stat` and for our 6 terminals we had 6 processes started: "FILE1" to "FILE6", while scripts used "FILE"19:44
DocScrutinizer05it was normal to have a ~16ß programs started during boot, just to have them waiting for input when you need them19:49
DocScrutinizer05150*19:49
*** Vajb has quit IRC19:54
*** dafox has quit IRC19:56
*** eMHa has quit IRC20:05
*** jskarvad has quit IRC20:14
*** thuttu77 has quit IRC20:20
*** Vajb has joined #maemo20:21
*** eMHa has joined #maemo20:29
*** trx has quit IRC20:30
*** trx has joined #maemo20:35
*** thuttu77 has joined #maemo20:42
*** Kabouik has joined #maemo20:53
DocScrutinizer05http://www.tentacle.franken.de/m80/20:54
*** dafox has joined #maemo21:04
*** mavhc has joined #maemo21:09
*** mavhc has quit IRC21:25
*** mavhc has joined #maemo21:32
*** mavhc has quit IRC21:40
*** florian_kc has quit IRC21:45
*** mavhc has joined #maemo21:49
*** mavhc has quit IRC21:58
*** mavhc has joined #maemo22:09
*** Wikiwide has joined #maemo22:16
WikiwideCan Nokia N900 connect to 2.4GHz or 5GHz WiFi networks?22:16
Wikiwide802.11 b/g : 2.4GHz, yes.22:17
sicelo5GHz, no22:18
WikiwideOkay, thank you :-) Just trying to figure out how to improve WiFi at home. Signal is crowded by neighbours' networks.22:19
WikiwideI have heard that ordinary modems aren't that good at WiFi networking, especially when surrounded by lots of devices. Now I have a gateway or two to test...22:20
*** mavhc has quit IRC22:21
Vajbmaybe to try different channels22:23
*** Wikiwide has quit IRC22:27
*** Wikiwide has joined #maemo22:27
DocScrutinizer05interesting teardown just to show what complexity of engineering we face when competing with state of the art top notch embedded integration https://www.youtube.com/watch?v=L5eSaFIIUpM22:32
*** Wikiwide has quit IRC22:34
sicelo3/cu22:35
DocScrutinizer05Wikiwide: first of all: do manual channel selection and nail down the channel so it never changes. Consider carefully where to place your AP. Adjust antenna orientation. Then, starting to do really effective measures, use multiple APs and configure them so they all run the same SSID and establish one contiguous RF network22:36
DocScrutinizer05refer to competent howto regarding whether those multiple AP should all use same channel or nailed fix to each its own channel22:38
DocScrutinizer05plcae the APs along "perimeter" of your flat22:39
DocScrutinizer05place*22:39
*** Venemo has joined #maemo22:39
DocScrutinizer05sicelo: ?22:39
sicelotypo. sorry22:39
DocScrutinizer05np :-)22:40
sicelo>configure them so they all run the same SSID and establish one contiguous RF network< a la, WDS?22:42
DocScrutinizer05sicelo: I lack expertise on that particular detail of WLAN22:46
sicelook. i'm also not well-versed. just that WDS tends to be not worth it (bandwidth is reduced) and also interoperability with APs from different manufacturers is virtualy non-existe t22:48
*** mavhc has joined #maemo22:52
*** mavhc has quit IRC22:57
*** timeless_ has joined #maemo23:05
*** timeless has quit IRC23:06
*** timeless_ is now known as timeless23:06
*** chem|st_ has joined #maemo23:07
*** useretail has quit IRC23:11
*** chem|st has quit IRC23:11
*** Venemo has quit IRC23:12
*** useretail has joined #maemo23:13
*** mavhc has joined #maemo23:18
*** Venemo has joined #maemo23:23
*** mavhc has quit IRC23:25
*** Venemo has quit IRC23:33
*** mavhc has joined #maemo23:46
*** mavhc has quit IRC23:55

Generated by irclog2html.py 2.15.1 by Marius Gedminas - find it at mg.pov.lt!