Berkeley CSUA MOTD:Entry 27894
Berkeley CSUA MOTD
 
WIKI | FAQ | Tech FAQ
http://csua.com/feed/
2025/04/03 [General] UID:1000 Activity:popular
4/3     

2003/3/28-30 [Academia/Berkeley/CSUA/Motd] UID:27894 Activity:moderate
3/28    I have a process that has to set the signal handlers for tty
        generated signals (and some others) to ignore while it is
        doing some critical processing. When this processing is done
        it calls exec to start executing a different pgm. I want to
        reset the signal handlers to their original values before exec
        is called. What is the easiest way to do that?
        \_ for (i = 1; i < _SIG_MAXSIG; i++) signal(i, SIG_DFL);

           If you don't actually want to ignore the tty signals, but just
           defer them until your critical processing is done, you can use
           sigprocmask instead of actually ignoring them; then you won't
           have to do anything at all when you call exec.
           \_ sigprocmask seems to do what I want. I was just calling
              signal and storing the old ptr in an array and then just
              restoring them prior to calling exec, but sigprocmask
              sounds better. thanks.
        \_ WTF does this have to do with Iraq or RIDE BIKE or Linux?  Get off
           the motd with this stuff!
           \_ If it counts for anything, my process runs on '1337 GN00
              D3B14N L1NUX!
              \_ use motdedit you twink.
                 \_ ED!
2025/04/03 [General] UID:1000 Activity:popular
4/3     

You may also be interested in these entries...
2013/10/24-2014/2/5 [Academia/Berkeley/CSUA/Motd, Computer/SW] UID:54746 Activity:nil
9/26    I remember there was web version of the motd with search function
        (originally due to kchang ?).  The last time I used it it was hosted
        on the csua website but I can't remember its url (onset of dementia?)
        now. Can somebody plz post it, tnx.
        \_ http://csua.com
           \_ for some reason I couldn't log in since Sept and the archiver
	...
2012/9/5-11/7 [Academia/Berkeley/CSUA, Academia/Berkeley/CSUA/Motd] UID:54472 Activity:nil
9/4     It looks like there are some issues with wallall at the moment. Any
        plans for it getting fixed? I can run wall, but wallall just gives an
        error.
        \_ Asking questions on the motd will not get any attention from
           any undergrad. You should email politburo or perhaps csua. -ausman
        \_ Asking questions on the motd will not get attention from any
	...
2012/4/23-6/4 [Academia/Berkeley/CSUA/Motd] UID:54359 Activity:nil
4/19    Motd updater thingy seems to be broken, does anyone know why?
        If not, I will take a look later in the day. -ausman
        \_ /etc/motd.public is not getting copied into /etc/motd for a while.
           \_ Now it works and no one knows why. Strange. -ausman
	...
2012/2/6-3/26 [Academia/Berkeley/CSUA, Academia/Berkeley/CSUA/Motd] UID:54301 Activity:nil
2/6     Um, what happened to http://www.csua.berkeley.edu/~myname ?
        "The requested URL /~myname/ was not found on this server."
        \_ Try emailing root or politburo. I don't think that the
           undergrads use this machine anymore. -ausman
        \_ Ausman is mostly right. LDAP went down due to an expired cert and
           took down most of the rest of our stuff. It's probably a thing with
	...
2012/2/24-3/26 [Academia/Berkeley/CSUA/Motd] UID:54313 Activity:nil
2/24    What newsreader should I use on soda?
        \_ USENIX? You serious? Everyone switched to RSS.
           \_ I think you mean usenet not usenix.  usenet was generally much
              better than blogs / rss (cf. comp.lang.c, comp.lang.perl,
              the usenet oracle, alt.* with digg, slashdot, etc.)
           link:reader.google.com is the best
	...