Mercurial > hg > rlgallery-misc
comparison dgl/dgl-common.c.patch @ 14:9945b472aac2
Add dgamelaunch configuration to the project.
author | John "Elwin" Edwards <elwin@sdf.org> |
---|---|
date | Sat, 15 Sep 2012 08:46:06 -0700 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
13:d34f2e40e67d | 14:9945b472aac2 |
---|---|
1 504c504 | |
2 < int fd, len, n, is_nhext, pid; | |
3 --- | |
4 > int fd, len, n, is_nhext, is_node, pid; | |
5 538a539 | |
6 > is_node = strchr(pdirent->d_name, ':') && !strncmp(strchr(pdirent->d_name, ':'), ":node:", 6); | |
7 550c551 | |
8 < if (fd >= 0 && (is_nhext || fcntl (fd, F_SETLK, &fl) == -1)) | |
9 --- | |
10 > if (fd >= 0 && (is_nhext || is_node || fcntl (fd, F_SETLK, &fl) == -1)) | |
11 567a569,576 | |
12 > if (is_node) { | |
13 > replacestr = strchr(replacestr, ':'); | |
14 > if (!replacestr) { | |
15 > debug_write("inprogress-filename does not have ':', 1a"); | |
16 > graceful_exit(145); | |
17 > } | |
18 > replacestr++; | |
19 > } | |
20 589a599,602 | |
21 > if (is_node) { | |
22 > replacestr++; | |
23 > replacestr = strchr(replacestr, ':'); | |
24 > } |