Skip to content

Commit 1fd4e5d

Browse files
committed
Merge remote-tracking branch 'origin/fix-_exit' into incoming ; version 1.37.15
2 parents a56db2a + ed8299a commit 1fd4e5d

File tree

3 files changed

+11
-2
lines changed

3 files changed

+11
-2
lines changed

emscripten-version.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
"1.37.14"
1+
"1.37.15"

tests/test_other.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5547,6 +5547,15 @@ def test_module_onexit(self):
55475547
Popen([PYTHON, EMCC, 'src.cpp']).communicate()
55485548
self.assertContained('exiting now, status 14', run_js('a.out.js', assert_returncode=14))
55495549

5550+
def test_underscore_exit(self):
5551+
open('src.cpp', 'w').write(r'''
5552+
#include <unistd.h>
5553+
int main() {
5554+
_exit(0); // should not end up in an infinite loop with non-underscore exit
5555+
} ''')
5556+
subprocess.check_call([PYTHON, EMCC, 'src.cpp'])
5557+
self.assertContained('', run_js('a.out.js', assert_returncode=0))
5558+
55505559
def test_file_packager_huge(self):
55515560
open('huge.dat', 'w').write('a'*(1024*1024*257))
55525561
open('tiny.dat', 'w').write('a')

tools/system_libs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ def create_libc(libname):
9898
musl_srcdir = shared.path_from_root('system', 'lib', 'libc', 'musl', 'src')
9999
blacklist = set(
100100
['ipc', 'passwd', 'thread', 'signal', 'sched', 'ipc', 'time', 'linux', 'aio', 'exit', 'legacy', 'mq', 'process', 'search', 'setjmp', 'env', 'ldso', 'conf'] + # musl modules
101-
['memcpy.c', 'memset.c', 'memmove.c', 'getaddrinfo.c', 'getnameinfo.c', 'inet_addr.c', 'res_query.c', 'gai_strerror.c', 'proto.c', 'gethostbyaddr.c', 'gethostbyaddr_r.c', 'gethostbyname.c', 'gethostbyname2_r.c', 'gethostbyname_r.c', 'gethostbyname2.c', 'usleep.c', 'alarm.c', 'syscall.c'] + # individual files
101+
['memcpy.c', 'memset.c', 'memmove.c', 'getaddrinfo.c', 'getnameinfo.c', 'inet_addr.c', 'res_query.c', 'gai_strerror.c', 'proto.c', 'gethostbyaddr.c', 'gethostbyaddr_r.c', 'gethostbyname.c', 'gethostbyname2_r.c', 'gethostbyname_r.c', 'gethostbyname2.c', 'usleep.c', 'alarm.c', 'syscall.c', '_exit.c'] + # individual files
102102
['abs.c', 'cos.c', 'cosf.c', 'cosl.c', 'sin.c', 'sinf.c', 'sinl.c', 'tan.c', 'tanf.c', 'tanl.c', 'acos.c', 'acosf.c', 'acosl.c', 'asin.c', 'asinf.c', 'asinl.c', 'atan.c', 'atanf.c', 'atanl.c', 'atan2.c', 'atan2f.c', 'atan2l.c', 'exp.c', 'expf.c', 'expl.c', 'log.c', 'logf.c', 'logl.c', 'sqrt.c', 'sqrtf.c', 'sqrtl.c', 'fabs.c', 'fabsf.c', 'fabsl.c', 'ceil.c', 'ceilf.c', 'ceill.c', 'floor.c', 'floorf.c', 'floorl.c', 'pow.c', 'powf.c', 'powl.c', 'round.c', 'roundf.c'] # individual math files
103103
)
104104
# TODO: consider using more math code from musl, doing so makes box2d faster

0 commit comments

Comments
 (0)