Skip to content

Commit 33cf4da

Browse files
committed
cleanup: replace exit(1) with abort()
1 parent 6fe2aae commit 33cf4da

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

storage/innobase/os/os0thread.cc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ os_thread_create_func(
148148
fprintf(stderr,
149149
"InnoDB: Error: pthread_attr_init() returned %d\n",
150150
ret);
151-
exit(1);
151+
abort();
152152
}
153153
#endif
154154

@@ -165,7 +165,7 @@ os_thread_create_func(
165165
fprintf(stderr,
166166
"InnoDB: Error: pthread_attr_setstacksize"
167167
" returned %d\n", ret);
168-
exit(1);
168+
abort();
169169
}
170170
#endif
171171
os_mutex_enter(os_sync_mutex);
@@ -180,7 +180,7 @@ os_thread_create_func(
180180
if (UNIV_UNLIKELY(ret)) {
181181
fprintf(stderr,
182182
"InnoDB: Error: pthread_create() returned %d\n", ret);
183-
exit(1);
183+
abort();
184184
}
185185

186186
#ifndef UNIV_HPUX10

0 commit comments

Comments
 (0)