forked from pool/boinc-client
d7fb2f46f3
- Removed boinc-bnc_465676.patch (Fixed Upstream) - Removed boinc-bnc_465676.patch (Fixed Upstream) - Removed boinc-client-NotebookWxPanel.patch (Fixed Upstream) - Removed boinc-client-wxWindowListNode.patch (Fixed Upstream) - Fix boinc-manager-lang requires - Major spec file makeover - Updated version - Cleaned up patches - Fixed most deprecated conversion from string constant to 'char*' OBS-URL: https://build.opensuse.org/package/show/network/boinc-client?expand=0&rev=7
14 lines
475 B
Diff
14 lines
475 B
Diff
--- sched/handle_request.cpp 2010-01-14 15:18:06.000000000 -0600
|
|
+++ sched/handle_request.cpp.orig 2010-10-04 11:24:03.000000000 -0500
|
|
@@ -143,7 +143,9 @@
|
|
// write PID into the CGI_<HOSTID> file and flush to disk
|
|
//
|
|
count = sprintf(pid_string, "%d\n", getpid());
|
|
- write(fd, pid_string, count);
|
|
+ if( write(fd, pid_string, count) < 0 ) {
|
|
+ perror("Cannot write PID to host-file") ; exit(errno) ;
|
|
+ };
|
|
fsync(fd);
|
|
|
|
g_reply->lockfile_fd = fd;
|