diff options
author | Rich Felker <dalias@aerifal.cx> | 2020-09-28 19:30:19 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2020-10-14 20:27:12 -0400 |
commit | 3cd3de61894b73ca9f62ab9e5b572fc1037dcd55 (patch) | |
tree | c3719ceb01061cb31500b7e64ea51717a32219c4 /src/exit | |
parent | 34904d830a9fd1f6fc47218f38c111698303d2fe (diff) | |
download | musl-3cd3de61894b73ca9f62ab9e5b572fc1037dcd55.tar.gz musl-3cd3de61894b73ca9f62ab9e5b572fc1037dcd55.tar.bz2 musl-3cd3de61894b73ca9f62ab9e5b572fc1037dcd55.tar.xz musl-3cd3de61894b73ca9f62ab9e5b572fc1037dcd55.zip |
move __abort_lock to its own file and drop pointless weak_alias trick
the dummy definition of __abort_lock in sigaction.c was performing
exactly the same role that putting the lock in its own source file
could and should have been used to achieve.
while we're moving it, give it a proper declaration.
Diffstat (limited to 'src/exit')
-rw-r--r-- | src/exit/abort.c | 2 | ||||
-rw-r--r-- | src/exit/abort_lock.c | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/src/exit/abort.c b/src/exit/abort.c index e1980f10..f21f458e 100644 --- a/src/exit/abort.c +++ b/src/exit/abort.c @@ -6,8 +6,6 @@ #include "lock.h" #include "ksigaction.h" -hidden volatile int __abort_lock[1]; - _Noreturn void abort(void) { raise(SIGABRT); diff --git a/src/exit/abort_lock.c b/src/exit/abort_lock.c new file mode 100644 index 00000000..3af72c7b --- /dev/null +++ b/src/exit/abort_lock.c @@ -0,0 +1,3 @@ +#include "pthread_impl.h" + +volatile int __abort_lock[1]; |