We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 13ad8ef commit c5d7264Copy full SHA for c5d7264
Zend/zend_gdb.c
@@ -113,7 +113,7 @@ ZEND_API bool zend_gdb_present(void)
113
#if defined(__linux__) /* netbsd while having this procfs part, does not hold the tracer pid */
114
int fd = open("/proc/self/status", O_RDONLY);
115
116
- if (fd > 0) {
+ if (fd >= 0) {
117
char buf[1024];
118
ssize_t n = read(fd, buf, sizeof(buf) - 1);
119
char *s;
0 commit comments