Skip to content

Instantly share code, notes, and snippets.

View BatmanAoD's full-sized avatar

Kyle J Strand BatmanAoD

View GitHub Profile
@BatmanAoD
BatmanAoD / nofork.strace
Created August 25, 2020 20:01
WSL failing to fork with `cmd.exe /c notepad`
1376 execve("/mnt/c/WINDOWS/system32/cmd.exe", ["cmd.exe", "/c", "notepad"], 0x7ffccb428d48 /* 36 vars */) = 0
1376 arch_prctl(ARCH_SET_FS, 0x2a2110) = 0
1376 set_tid_address(0x2a2148) = 1376
1376 brk(NULL) = 0x1525000
1376 brk(0x1526000) = 0x1526000
1376 sched_getaffinity(0, 128, [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11]) = 32
1376 getpid() = 1376
1376 getcwd("/mnt/c", 4096) = 7
1376 uname({sysname="Linux", nodename="Razz", ...}) = 0
1376 getcwd("/mnt/c", 4096) = 7