Revision b782cd3d xseg/peers/user/pfiled.c

b/xseg/peers/user/pfiled.c
1093 1093
int pidfile_open(char *path, pid_t *old_pid)
1094 1094
{       
1095 1095
	//nfs version > 3
1096
	int fd = open(path, O_CREAT|O_EXCL|O_WRONLY);
1096
	int fd = open(path, O_CREAT|O_EXCL|O_WRONLY, S_IWUSR);
1097 1097
	if (fd < 0){
1098 1098
		if (errno == -EEXIST)
1099 1099
			pidfile_read(path, old_pid);

Also available in: Unified diff