Changeset 153 for trunk/src/sh_err_console.c
- Timestamp:
- Jan 11, 2008, 11:47:17 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/sh_err_console.c
r137 r153 286 286 struct sigaction sa_new, sa_old; 287 287 static int blockMe = 0; 288 int val_return; 288 289 289 290 SL_ENTER(_("sh_log_console")); … … 315 316 { 316 317 len = strlen(errmsg); 317 (void) write(STDERR_FILENO, errmsg, len); 318 (void) write(STDERR_FILENO, "\n", 1); 318 do { 319 val_return = write(STDERR_FILENO, errmsg, len); 320 } while (val_return < 0 && errno == EINTR); 321 do { 322 val_return = write(STDERR_FILENO, "\n", 1); 323 } while (val_return < 0 && errno == EINTR); 319 324 /* 320 325 * fprintf (stderr, "%s\n", errmsg); … … 367 372 if (fd[cc] >= 0) 368 373 { 369 (void) write(fd[cc], errmsg, strlen(errmsg)); 370 (void) write(fd[cc], "\r\n", 2); 374 do { 375 val_return = write(fd[cc], errmsg, strlen(errmsg)); 376 } while (val_return < 0 && errno == EINTR); 377 do { 378 val_return = write(fd[cc], "\r\n", 2); 379 } while (val_return < 0 && errno == EINTR); 371 380 (void) close(fd[cc]); 372 381 service_failure[cc] = 0;
Note:
See TracChangeset
for help on using the changeset viewer.