Revision b782cd3d

b/xseg/peers/user/peer.c
688 688
int pidfile_open(char *path, pid_t *old_pid)
689 689
{
690 690
	//nfs version > 3
691
	int fd = open(path, O_CREAT|O_EXCL|O_WRONLY);
691
	int fd = open(path, O_CREAT|O_EXCL|O_WRONLY, S_IWUSR);
692 692
	if (fd < 0){
693 693
		if (errno == EEXIST)
694 694
			pidfile_read(path, old_pid);
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