Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 11594 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]
this is a patch made against metalog-0.6-r10
metalog.patch (text/plain), 1.38 KB, created by
Roger
on 2003-05-06 15:42:06 UTC
(
hide
)
Description:
this is a patch made against metalog-0.6-r10
Filename:
MIME Type:
Creator:
Roger
Created:
2003-05-06 15:42:06 UTC
Size:
1.38 KB
patch
obsolete
>--- metalog.c-after-unpack 2003-05-06 11:48:21.000000000 -0700 >+++ metalog.c 2003-05-06 12:24:02.000000000 -0700 >@@ -700,7 +700,8 @@ > 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)) { > fprintf(stderr, "Unable to launch [%s]\n", >@@ -711,10 +712,11 @@ > if (command_child == (pid_t) 0) { > execl(command, command, date, prg, info, 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; > } >@@ -886,8 +888,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 >@@ -895,8 +895,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