Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 10754 Details for
Bug 8607
metalog hanging from time to time
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch to make it multiprocess
metalog-spawn.diff (text/plain), 1.37 KB, created by
Jedi/Sector One
on 2003-04-16 16:02:27 UTC
(
hide
)
Description:
Patch to make it multiprocess
Filename:
MIME Type:
Creator:
Jedi/Sector One
Created:
2003-04-16 16:02:27 UTC
Size:
1.37 KB
patch
obsolete
>--- src/metalog.c.bkp 2003-04-07 15:00:57.000000000 +0200 >+++ src/metalog.c 2003-04-16 21:56:52.000000000 +0200 >@@ -844,6 +844,7 @@ > const char * const prg, const char * const info) > { > struct stat st; >+ pid_t command_child; > > if (command == NULL || *command == 0 || > stat(command, &st) < 0 || !S_ISREG(st.st_mode)) { >@@ -855,10 +856,11 @@ > if (command_child == (pid_t) 0) { > execl(command, command, date, prg, info, (char *) NULL); > _exit(EXIT_FAILURE); >- } else if (command_child != (pid_t) -1) { >- while (command_child != (pid_t) 0) { >- pause(); >- } >+ } >+ if (command_child == (pid_t) -1) { >+ fprintf(stderr, "Unable to launch [%s] : [%s]\n", >+ command == NULL ? "null" : command, strerror(errno)); >+ return -1; > } > return 0; > } >@@ -1126,8 +1128,6 @@ > if (pid == child) { > fprintf(stderr, "Klog child [%u] died\n", (unsigned) pid); > should_exit = 1; >- } else if (pid == command_child) { >- command_child = (pid_t) 0; > } > } > #else >@@ -1135,8 +1135,6 @@ > if (pid == child) { > fprintf(stderr, "Klog child [%u] died\n", (unsigned) pid); > should_exit = 1; >- } else if (pid == command_child) { >- command_child = (pid_t) 0; > } > } > #endif
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 8607
: 10754 |
11594
|
11595
|
11596