Mercurial > geeqie.yaz
comparison src/remote.c @ 512:f9bf33be53ff
Remove whitespace between function name and first parenthesis for the sake of consistency.
author | zas_ |
---|---|
date | Thu, 24 Apr 2008 12:23:02 +0000 |
parents | 135570a8bd96 |
children | 3097880d7d95 |
comparison
equal
deleted
inserted
replaced
511:e21da52016c8 | 512:f9bf33be53ff |
---|---|
286 if (!text) return TRUE; | 286 if (!text) return TRUE; |
287 | 287 |
288 sigpipe_occured = FALSE; | 288 sigpipe_occured = FALSE; |
289 | 289 |
290 new_action.sa_handler = sighandler_sigpipe; | 290 new_action.sa_handler = sighandler_sigpipe; |
291 sigemptyset (&new_action.sa_mask); | 291 sigemptyset(&new_action.sa_mask); |
292 new_action.sa_flags = 0; | 292 new_action.sa_flags = 0; |
293 | 293 |
294 /* setup our signal handler */ | 294 /* setup our signal handler */ |
295 sigaction (SIGPIPE, &new_action, &old_action); | 295 sigaction(SIGPIPE, &new_action, &old_action); |
296 | 296 |
297 if (write(rc->fd, text, strlen(text)) == -1 || | 297 if (write(rc->fd, text, strlen(text)) == -1 || |
298 write(rc->fd, "\n", 1) == -1) | 298 write(rc->fd, "\n", 1) == -1) |
299 { | 299 { |
300 if (sigpipe_occured) | 300 if (sigpipe_occured) |
311 { | 311 { |
312 ret = TRUE; | 312 ret = TRUE; |
313 } | 313 } |
314 | 314 |
315 /* restore the original signal handler */ | 315 /* restore the original signal handler */ |
316 sigaction (SIGPIPE, &old_action, NULL); | 316 sigaction(SIGPIPE, &old_action, NULL); |
317 | 317 |
318 return ret; | 318 return ret; |
319 } | 319 } |
320 | 320 |
321 void remote_close(RemoteConnection *rc) | 321 void remote_close(RemoteConnection *rc) |