*** mavhc has joined #maemo | 00:19 | |
*** mavhc has quit IRC | 00:25 | |
*** louisdk has quit IRC | 00:31 | |
*** heroux has quit IRC | 00:38 | |
*** mavhc has joined #maemo | 00:44 | |
*** mavhc has quit IRC | 00:53 | |
*** Pali has quit IRC | 01:03 | |
*** frals has quit IRC | 01:07 | |
*** thuttu77 has quit IRC | 01:07 | |
*** frals has joined #maemo | 01:07 | |
*** frals has joined #maemo | 01:07 | |
*** thuttu77 has joined #maemo | 01:08 | |
*** mavhc has joined #maemo | 01:32 | |
*** mavhc has quit IRC | 01:38 | |
*** mavhc has joined #maemo | 01:46 | |
*** mavhc has quit IRC | 01:51 | |
*** mavhc has joined #maemo | 01:55 | |
*** florian_kc has quit IRC | 02:02 | |
*** atk has quit IRC | 02:02 | |
*** atk has joined #maemo | 02:03 | |
DocScrutinizer05 | http://wiki.maemo.org/Community_Council | 02:08 |
---|---|---|
DocScrutinizer05 | warfare: ping | 02:09 |
DocScrutinizer05 | warfare: spam in http://maemo.org/news/planet-maemo/rss.xml | 02:09 |
*** mavhc has quit IRC | 02:09 | |
DocScrutinizer05 | xes: ^^^ | 02:09 |
DocScrutinizer05 | warfare: xes: I have no idea if planet-maemo is of any use, or been of any use during last 10 years | 02:11 |
DocScrutinizer05 | tbh I don't even understand what's the intended purpose. Some maemo specific filter bubble of sorts? | 02:14 |
xes | DocScrutinizer05: there is a task collecting news from maby blogs and other sources | 02:22 |
xes | *many | 02:22 |
*** tm has quit IRC | 03:18 | |
*** tm has joined #maemo | 03:21 | |
*** mavhc has joined #maemo | 03:22 | |
*** mavhc has quit IRC | 03:32 | |
*** Kabouik has quit IRC | 03:39 | |
*** Kabouik has joined #maemo | 03:46 | |
*** mavhc has joined #maemo | 03:48 | |
*** mavhc has quit IRC | 03:52 | |
*** louisdk has joined #maemo | 03:53 | |
*** Kabouik has quit IRC | 03:54 | |
*** mavhc has joined #maemo | 03:57 | |
*** louisdk has quit IRC | 03:58 | |
*** mavhc has quit IRC | 04:09 | |
*** mavhc has joined #maemo | 04:20 | |
*** mavhc has quit IRC | 04:26 | |
*** mavhc has joined #maemo | 04:52 | |
pabs3 | DocScrutinizer05: its a very common thing to have for Linux distros, for eg https://planet.debian.org/ http://planet.gnome.org/ http://planetkde.org/ etc | 04:54 |
*** mavhc has quit IRC | 05:04 | |
*** ketas has quit IRC | 05:32 | |
*** mavhc has joined #maemo | 05:41 | |
*** ketas has joined #maemo | 05:42 | |
*** mavhc has quit IRC | 05:51 | |
*** mavhc has joined #maemo | 06:10 | |
*** mavhc has quit IRC | 06:19 | |
*** mavhc has joined #maemo | 06:37 | |
*** mavhc has quit IRC | 06:48 | |
*** mavhc has joined #maemo | 06:55 | |
*** valerius has quit IRC | 06:56 | |
*** grinsekatze has quit IRC | 06:57 | |
*** mavhc has quit IRC | 07:04 | |
*** mavhc has joined #maemo | 07:13 | |
*** mavhc has quit IRC | 07:22 | |
*** valerius has joined #maemo | 07:22 | |
*** merlin1991 has quit IRC | 07:25 | |
*** merlin1991 has joined #maemo | 07:25 | |
*** spiiroin has quit IRC | 07:33 | |
*** APic has quit IRC | 07:33 | |
*** APic has joined #maemo | 07:39 | |
*** mavhc has joined #maemo | 07:44 | |
*** Kilroo has quit IRC | 07:45 | |
*** mavhc has quit IRC | 07:49 | |
*** heroux has joined #maemo | 07:56 | |
*** mavhc has joined #maemo | 07:56 | |
*** mavhc has quit IRC | 08:02 | |
*** mavhc has joined #maemo | 08:11 | |
*** mavhc has quit IRC | 08:21 | |
*** spiiroin has joined #maemo | 08:34 | |
*** mavhc has joined #maemo | 08:44 | |
*** mavhc has quit IRC | 08:48 | |
*** mavhc has joined #maemo | 08:59 | |
*** mavhc has quit IRC | 09:04 | |
*** mavhc has joined #maemo | 09:08 | |
*** grinsekatze has joined #maemo | 09:09 | |
*** mavhc has quit IRC | 09:21 | |
*** dafox has joined #maemo | 09:23 | |
*** mavhc has joined #maemo | 09:29 | |
*** mavhc has quit IRC | 09:35 | |
*** mavhc has joined #maemo | 09:44 | |
*** mavhc has quit IRC | 09:49 | |
*** Venemo has joined #maemo | 09:51 | |
*** florian_kc has joined #maemo | 09:53 | |
*** dafox has quit IRC | 09:53 | |
*** mavhc has joined #maemo | 09:57 | |
*** florian_kc has quit IRC | 09:59 | |
*** mavhc has quit IRC | 10:11 | |
*** spiiroin has quit IRC | 10:12 | |
*** Venemo has quit IRC | 10:23 | |
*** Venemo has joined #maemo | 10:26 | |
*** mavhc has joined #maemo | 10:29 | |
*** ceene has quit IRC | 10:35 | |
*** Venemo has joined #maemo | 10:40 | |
*** ceene has joined #maemo | 10:42 | |
*** mavhc has quit IRC | 10:51 | |
*** mavhc has joined #maemo | 10:59 | |
*** spiiroin has joined #maemo | 11:13 | |
*** mavhc has quit IRC | 11:21 | |
*** florian has joined #maemo | 11:23 | |
*** Kabouik has joined #maemo | 11:24 | |
*** Venemo has quit IRC | 11:29 | |
*** mavhc has joined #maemo | 11:51 | |
*** mavhc has quit IRC | 11:58 | |
*** mavhc has joined #maemo | 12:03 | |
*** jskarvad has joined #maemo | 12:12 | |
*** mavhc has quit IRC | 12:12 | |
*** eMHa has quit IRC | 12:27 | |
*** mavhc has joined #maemo | 12:35 | |
*** mavhc has quit IRC | 12:50 | |
*** eMHa has joined #maemo | 12:57 | |
*** mavhc has joined #maemo | 13:01 | |
*** mavhc has quit IRC | 13:11 | |
*** mavhc has joined #maemo | 13:16 | |
*** cyteen__ has quit IRC | 13:34 | |
*** mavhc has quit IRC | 13:48 | |
*** mavhc has joined #maemo | 13:53 | |
*** jskarvad has quit IRC | 13:55 | |
*** jskarvad has joined #maemo | 13:55 | |
*** mavhc has quit IRC | 13:57 | |
*** mavhc has joined #maemo | 14:25 | |
DocScrutinizer05 | I think it's pointless | 14:29 |
DocScrutinizer05 | particularly when unredacted | 14:29 |
DocScrutinizer05 | SPAM QED | 14:29 |
*** mavhc has quit IRC | 14:31 | |
*** mavhc has joined #maemo | 14:55 | |
*** RedM has quit IRC | 15:00 | |
*** RedW has joined #maemo | 15:01 | |
*** mavhc has quit IRC | 15:12 | |
*** mavhc has joined #maemo | 15:22 | |
*** Venemo has joined #maemo | 15:26 | |
*** mavhc has quit IRC | 15:27 | |
*** luke-jr has quit IRC | 15:27 | |
*** mavhc has joined #maemo | 15:40 | |
*** CatButts has joined #maemo | 15:42 | |
CatButts | meow | 15:42 |
*** mavhc has quit IRC | 15:49 | |
*** luke-jr has joined #maemo | 15:56 | |
*** cyteen_ has joined #maemo | 15:57 | |
*** mavhc has joined #maemo | 16:06 | |
*** mavhc has quit IRC | 16:10 | |
ceene | I'm having a bit of trouble with one linux related thing, maybe someone has an idea | 16:21 |
ceene | I'm executing via execv something like this: /bin/sh -c "producer | consumer" | 16:21 |
ceene | with that, I have the PID of /bin/sh | 16:22 |
ceene | but if I kill this sh instance, both producer and consumer keep on running | 16:22 |
KotCzarny | you can always do 2 execvs' and copy data between processes yourself | 16:22 |
ceene | shouldn't sh be killing its children? | 16:22 |
ceene | i'd rather not do that | 16:22 |
ceene | :/ | 16:22 |
KotCzarny | maybe it waits for the children to finish | 16:23 |
inz | KotCzarny, no need to copy data manually, one can just pipe() | 16:23 |
ceene | these children won't end unless someone kills them, that's the reason I want to kill sh | 16:24 |
ceene | I expected them to die, but it seems they are happy to keep on living forever | 16:24 |
KotCzarny | do the killed sh vanishes from process list? | 16:25 |
ceene | yes, it becomes a zombie, and after waitpid it disappears | 16:27 |
inz | Som'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 |
KotCzarny | kill the producer or receiver then? | 16:27 |
inz | I believe the problem was that their pids are not known | 16:28 |
ceene | inz: exactly | 16:29 |
ceene | my 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 begets | 16:29 |
KotCzarny | can any of them be modified to create pid file? | 16:30 |
*** Venemo has quit IRC | 16:30 | |
ceene | i control both of them, yes | 16:30 |
KotCzarny | might be easiest way, or even control pipe to accept msgs/signals | 16:31 |
ceene | isn't there any way for sh to just kill his own children when it dies? | 16:31 |
KotCzarny | maybe your apps detach from sh? | 16:32 |
ceene | nop, none of them fork() or daemon() | 16:32 |
inz | The behavior might also depend on the shell | 16:32 |
inz | Is the pipe() solution above too complex for you? | 16:34 |
ceene | no, I could do it, but I have several processes that I launch via fork+execv, that are later on managed by a few functions | 16:35 |
ceene | so I would have to make a special case out of this process | 16:35 |
KotCzarny | make the producer or receiver create known pid file | 16:36 |
KotCzarny | then kill the pid when needed | 16:36 |
inz | It should be enough for you to just kill one end or the other, they should mutually destruct on SIGPIPE when one end goes away | 16:36 |
ceene | that still forces me to make this a particular case that isn't managed the same way I managed the other processes | 16:36 |
KotCzarny | can producer spawn receiver? | 16:37 |
ceene | I could do that, yes | 16:37 |
KotCzarny | that way you could evecve it directly | 16:38 |
ceene | everything seems inelegant to me | 16:40 |
KotCzarny | all depends on your schedule and budget i guess | 16:40 |
ceene | If pid is less than -1, then sig is sent to every process in the process group whose ID is -pid. | 16:41 |
KotCzarny | https://unix.stackexchange.com/questions/124127/kill-all-descendant-processes | 16:42 |
KotCzarny | may be related? | 16:42 |
ceene | fork()+exec() /bin/sh -c 'a | b'... I guess a, b, sh would belong to the same process group | 16:42 |
ceene | but would the parent of sh be a member of the same process group? | 16:42 |
ceene | ah, I can set process group by myself via setpgrp | 16:44 |
KotCzarny | you can also make shell return descendant pids on kill | 16:44 |
KotCzarny | and use it | 16:44 |
KotCzarny | anyway, time to go home | 16:45 |
ceene | thanks for your ideas! | 16:45 |
ceene | the 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 |
ceene | 16: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 |
ceene | so 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 well | 16:59 |
ceene | and I can forget about that | 16:59 |
ceene | :) | 16:59 |
KotCzarny | :) | 16:59 |
KotCzarny | nothing like sharing problem and resolving it by mind reset | 16:59 |
ceene | totally, you were a pretty fine rubber duck, you even talked back with useful remarks | 17:00 |
ceene | now I have more of a philosophical problem... | 17:00 |
KotCzarny | try porto | 17:00 |
ceene | i'm basically creating a init system by scratch | 17:00 |
ceene | s/by/from/ | 17:01 |
infobot | ceene meant: i'm basically creating a init system from scratch | 17:01 |
KotCzarny | why not systemd? | 17:01 |
KotCzarny | ;) | 17:01 |
ceene | lol | 17:01 |
ceene | that's my philosophical problem, I don't want to do that | 17:01 |
KotCzarny | but there are few real ones to choose from | 17:01 |
KotCzarny | including busybox's simple inittab | 17:02 |
ceene | most things I'm running from busybox init | 17:03 |
ceene | but several things I'm running via this custom initd | 17:04 |
ceene | i've implemented something akin to runlevels, because this system may be running in one out of several different modes | 17:04 |
inz | Doesn'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 order | 17:04 |
ceene | but this also initializes several segments of shared memory, configures an FPGA and more | 17:05 |
KotCzarny | i did #1 | 17:06 |
KotCzarny | the rest wasnt needed custom versions | 17:06 |
KotCzarny | (for me) | 17:06 |
ceene | this thing also receives RPC messages requesting changes in configuration, etc | 17:07 |
ceene | somedays I think this is great, somedays I think it's doing too much in one place | 17:07 |
ceene | and I'm having some kind of imposter syndrome related to systemd (am I making the same mistakes that they do?) | 17:08 |
KotCzarny | as long you are not on the mission to rule the world with your offspring, no | 17:09 |
ceene | no, 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 radar | 17:09 |
ceene | anything out of that, I'm not interested in | 17:10 |
*** mavhc has joined #maemo | 17:10 | |
KotCzarny | main problem with evild is being shoved to everyone's throats | 17:12 |
KotCzarny | (apart from being written badly by an idiot) | 17:12 |
CatButts | don't put that in mouth | 17:14 |
CatButts | you don't know where it's been! | 17:14 |
KotCzarny | i think you've missed 'shoved' part | 17:17 |
*** mavhc has quit IRC | 17:21 | |
*** mavhc has joined #maemo | 17:32 | |
*** sunshavi has quit IRC | 17:37 | |
*** sunshavi has joined #maemo | 17:38 | |
*** mavhc has quit IRC | 17:40 | |
*** mavhc has joined #maemo | 17:48 | |
*** sunshavi has quit IRC | 17:52 | |
*** sunshavi has joined #maemo | 17:53 | |
*** mavhc has quit IRC | 17:54 | |
*** mavhc has joined #maemo | 18:05 | |
*** Venemo has joined #maemo | 18:08 | |
*** mavhc has quit IRC | 18:27 | |
*** mavhc has joined #maemo | 18:30 | |
*** tryagain has joined #maemo | 18:32 | |
*** mavhc has quit IRC | 18:34 | |
*** mavhc has joined #maemo | 18:38 | |
*** mavhc has quit IRC | 18:44 | |
DocScrutinizer05 | ceene: https://unix.stackexchange.com/questions/14815/process-descendants | 18:46 |
DocScrutinizer05 | ooh, somebody beat me to it | 18:46 |
*** mavhc has joined #maemo | 18:53 | |
DocScrutinizer05 | ceene: *usually* your children processes share STDIN, STDOUT, STDERR and thus when parent quits they receive SIGHUP(?) | 18:55 |
DocScrutinizer05 | or your parent keeps thrack of its children by memorizing their PIDs and sending them a kill signal when/before the parent quits | 18:57 |
*** mavhc has quit IRC | 18:57 | |
DocScrutinizer05 | or you use a unique new program group for your process and its children, teher are ways to send signals to all processes of a pg | 18:58 |
*** florian_kc has joined #maemo | 18:59 | |
DocScrutinizer05 | or you might even use cgroups, like systemd does | 18:59 |
DocScrutinizer05 | or run the process under monitor, though that's a total overkill and often fails (can't monitor monitors afaik) | 19:00 |
*** Pali has joined #maemo | 19:00 | |
DocScrutinizer05 | see strace -f for the latter | 19:00 |
*** mavhc has joined #maemo | 19:02 | |
DocScrutinizer05 | inz: I only wrote a shell | 19:03 |
DocScrutinizer05 | not on linux though but on BS-M which woefully lacked anything akin a shell of sorts | 19:04 |
*** dafox has joined #maemo | 19:08 | |
DocScrutinizer05 | this 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 IRC | 19:09 | |
DocScrutinizer05 | NB that DÜ DÜZ and DÜM were the only key<s that actually triggered a data transfer from terminal to computer | 19:12 |
*** mavhc has quit IRC | 19:14 | |
DocScrutinizer05 | there 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 editor | 19:14 |
DocScrutinizer05 | you'll have a hard time finding any info about BS-M, so look for AMBOSS-M or the big brother BS-1000 | 19:22 |
DocScrutinizer05 | the 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 |
DocScrutinizer05 | users? owners? passwords & login? unknown ;-P | 19:41 |
*** Venemo has quit IRC | 19:41 | |
DocScrutinizer05 | the 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 |
DocScrutinizer05 | it was normal to have a ~16ß programs started during boot, just to have them waiting for input when you need them | 19:49 |
DocScrutinizer05 | 150* | 19:49 |
*** Vajb has quit IRC | 19:54 | |
*** dafox has quit IRC | 19:56 | |
*** eMHa has quit IRC | 20:05 | |
*** jskarvad has quit IRC | 20:14 | |
*** thuttu77 has quit IRC | 20:20 | |
*** Vajb has joined #maemo | 20:21 | |
*** eMHa has joined #maemo | 20:29 | |
*** trx has quit IRC | 20:30 | |
*** trx has joined #maemo | 20:35 | |
*** thuttu77 has joined #maemo | 20:42 | |
*** Kabouik has joined #maemo | 20:53 | |
DocScrutinizer05 | http://www.tentacle.franken.de/m80/ | 20:54 |
*** dafox has joined #maemo | 21:04 | |
*** mavhc has joined #maemo | 21:09 | |
*** mavhc has quit IRC | 21:25 | |
*** mavhc has joined #maemo | 21:32 | |
*** mavhc has quit IRC | 21:40 | |
*** florian_kc has quit IRC | 21:45 | |
*** mavhc has joined #maemo | 21:49 | |
*** mavhc has quit IRC | 21:58 | |
*** mavhc has joined #maemo | 22:09 | |
*** Wikiwide has joined #maemo | 22:16 | |
Wikiwide | Can Nokia N900 connect to 2.4GHz or 5GHz WiFi networks? | 22:16 |
Wikiwide | 802.11 b/g : 2.4GHz, yes. | 22:17 |
sicelo | 5GHz, no | 22:18 |
Wikiwide | Okay, thank you :-) Just trying to figure out how to improve WiFi at home. Signal is crowded by neighbours' networks. | 22:19 |
Wikiwide | I 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 IRC | 22:21 | |
Vajb | maybe to try different channels | 22:23 |
*** Wikiwide has quit IRC | 22:27 | |
*** Wikiwide has joined #maemo | 22:27 | |
DocScrutinizer05 | interesting 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=L5eSaFIIUpM | 22:32 |
*** Wikiwide has quit IRC | 22:34 | |
sicelo | 3/cu | 22:35 |
DocScrutinizer05 | Wikiwide: 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 network | 22:36 |
DocScrutinizer05 | refer to competent howto regarding whether those multiple AP should all use same channel or nailed fix to each its own channel | 22:38 |
DocScrutinizer05 | plcae the APs along "perimeter" of your flat | 22:39 |
DocScrutinizer05 | place* | 22:39 |
*** Venemo has joined #maemo | 22:39 | |
DocScrutinizer05 | sicelo: ? | 22:39 |
sicelo | typo. sorry | 22:39 |
DocScrutinizer05 | np :-) | 22:40 |
sicelo | >configure them so they all run the same SSID and establish one contiguous RF network< a la, WDS? | 22:42 |
DocScrutinizer05 | sicelo: I lack expertise on that particular detail of WLAN | 22:46 |
sicelo | ok. 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 t | 22:48 |
*** mavhc has joined #maemo | 22:52 | |
*** mavhc has quit IRC | 22:57 | |
*** timeless_ has joined #maemo | 23:05 | |
*** timeless has quit IRC | 23:06 | |
*** timeless_ is now known as timeless | 23:06 | |
*** chem|st_ has joined #maemo | 23:07 | |
*** useretail has quit IRC | 23:11 | |
*** chem|st has quit IRC | 23:11 | |
*** Venemo has quit IRC | 23:12 | |
*** useretail has joined #maemo | 23:13 | |
*** mavhc has joined #maemo | 23:18 | |
*** Venemo has joined #maemo | 23:23 | |
*** mavhc has quit IRC | 23:25 | |
*** Venemo has quit IRC | 23:33 | |
*** mavhc has joined #maemo | 23:46 | |
*** mavhc has quit IRC | 23:55 |
Generated by irclog2html.py 2.15.1 by Marius Gedminas - find it at mg.pov.lt!