Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 66284 Details for
Bug 102866
sys-process/daemontools: svscan with readproctitle support
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
readproctitle with SIGHUP support
readproctitle-hup.txt (text/plain), 590 bytes, created by
Xuefer
on 2005-08-18 19:27:24 UTC
(
hide
)
Description:
readproctitle with SIGHUP support
Filename:
MIME Type:
Creator:
Xuefer
Created:
2005-08-18 19:27:24 UTC
Size:
590 bytes
patch
obsolete
>--- readproctitle.c- Fri Aug 19 10:11:44 2005 >+++ readproctitle.c Fri Aug 19 10:21:03 2005 >@@ -1,9 +1,16 @@ > #include <unistd.h> > #include "error.h" >+#include "sig.h" >+ >+static char *buf; >+static void handler_hangup(int dummy) >+{ >+ int i = 0; >+ while (buf[i]) buf[i++] = '.'; >+} > > int main(int argc,char **argv) > { >- char *buf; > unsigned int len; > int i; > char ch; >@@ -14,6 +21,7 @@ > while (buf[len]) buf[len++] = '.'; > if (len < 5) _exit(100); > >+ sig_catch(sig_hangup, handler_hangup); > for (;;) > switch(read(0,&ch,1)) { > case 1:
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 102866
:
66143
| 66284 |
71620