Skip to content

Commit c368908

Browse files
committed
Shell (macOS): try fixing segfault in old macOS
Ref: #1388
1 parent 830c71d commit c368908

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/common/processing_linux.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,10 +158,8 @@ void ffProcessGetInfoLinux(pid_t pid, FFstrbuf* processName, FFstrbuf* exe, cons
158158
int mibs[] = { CTL_KERN, KERN_PROCARGS2, pid };
159159
if (sysctl(mibs, ARRAY_SIZE(mibs), NULL, &len, NULL, 0) == 0)
160160
{// try get arg0
161-
#ifndef MAC_OS_X_VERSION_10_15
162161
//don't know why if don't let len longer, proArgs2 and len will change during the following sysctl() in old MacOS version.
163162
len++;
164-
#endif
165163
FF_AUTO_FREE char* const procArgs2 = malloc(len);
166164
if (sysctl(mibs, ARRAY_SIZE(mibs), procArgs2, &len, NULL, 0) == 0)
167165
{

0 commit comments

Comments
 (0)