Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 181231 Details for
Bug 257968
sys-apps/netplug fails to compile (gcc 4.3.3 _FORTIFY_SOURCE problem)
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
netplug-1.2.9-warn_unused_result_write_call.patch
netplug-1.2.9-warn_unused_result_write_call.patch (text/plain), 630 bytes, created by
Romain Perier (RETIRED)
on 2009-02-07 10:38:40 UTC
(
hide
)
Description:
netplug-1.2.9-warn_unused_result_write_call.patch
Filename:
MIME Type:
Creator:
Romain Perier (RETIRED)
Created:
2009-02-07 10:38:40 UTC
Size:
630 bytes
patch
obsolete
>--- ../netplug-1.2.9_orig/main.c 2005-01-08 06:57:09.000000000 +0100 >+++ main.c 2009-02-07 11:30:37.017300663 +0100 >@@ -155,13 +155,22 @@ > { > struct child_exit ce; > int ret; >+ ssize_t s = 0; > > assert(sig == SIGCHLD); > > ce.pid = info->si_pid; > ret = waitpid(info->si_pid, &ce.status, 0); > if (ret == info->si_pid) >- write(child_handler_pipe[1], &ce, sizeof(ce)); >+ { >+ s = write(child_handler_pipe[1], &ce, sizeof(ce)); >+ >+ if (s == -1) >+ { >+ do_log(LOG_ERR, "can't write into pipe"); >+ exit(1); >+ } >+ } > } > > /* Poll the existing interface state, so we can catch any state
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 257968
: 181231 |
181232
|
183200