Changeset 2759:d2650c3d63df in roaraudio
- Timestamp:
- 09/23/09 00:13:55 (15 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
roard/roard.c
r2757 r2759 1529 1529 roar_vio_close(&pidfile_vio); 1530 1530 } 1531 if ( pwd || grp ) { 1532 if ( chown(pidfile, pwd ? pwd->pw_uid : -1, grp ? grp->gr_gid : -1) == -1 ) { 1533 ROAR_WARN("Can not change ownership of pidfile: %s: %s", pidfile, strerror(errno)); 1534 } 1535 } 1536 if ( chmod(pidfile, S_IRUSR|S_IWUSR|S_IRGRP|S_IROTH) == -1 ) { 1537 ROAR_WARN("Can not change permissions of pidfile: %s: %s", pidfile, strerror(errno)); 1538 } 1531 1539 } 1532 1540 #endif
Note: See TracChangeset
for help on using the changeset viewer.