sizeof(char **) + /* terminal NULL */
auxsize + /* auxv */
ROUNDUP(stringsize, sizeof(int)) +/* strings (aligned) */
- VKI_PAGE_SIZE; /* page for trampoline code */
+ VKI_PAGE_SIZE; /* page for trampoline code */
// decide where stack goes!
VG_(clstk_end) = VG_(client_end);
VG_(block_all_host_signals)(&mask);
ret = proxy_clone(proxy);
+
if (ret < 0) {
- VG_(printf)("Error %d trying to create proxy LWP for tid %d\n",
- ret, tid);
- VG_(core_panic)("Can't start proxy LWPs");
+ VG_(printf)("Error %d trying to create proxy LWP for tid %d\n",
+ ret, tid);
+ VG_(core_panic)("Can't start proxy LWPs");
}
VG_(restore_all_host_signals)(&mask);
}
specifics_ptr = VG_(threads)[tid].specifics_ptr;
- vg_assert(specifics_ptr == NULL
- || IS_ALIGNED4_ADDR(specifics_ptr));
+ vg_assert(specifics_ptr == NULL || IS_ALIGNED4_ADDR(specifics_ptr));
SET_PTHREQ_RETVAL(tid, (UWord)specifics_ptr);
}
}
/* Sanity checks. */
- vg_assert(dst->skss_per_sig[VKI_SIGKILL].skss_handler
- == VKI_SIG_DFL);
- vg_assert(dst->skss_per_sig[VKI_SIGSTOP].skss_handler
- == VKI_SIG_DFL);
+ vg_assert(dst->skss_per_sig[VKI_SIGKILL].skss_handler == VKI_SIG_DFL);
+ vg_assert(dst->skss_per_sig[VKI_SIGSTOP].skss_handler == VKI_SIG_DFL);
if (0)
pp_SKSS();
*/
if (VG_(clo_trace_signals)) {
- VG_(message)(Vg_DebugMsg, "signal %d arrived ... si_code=%d", sigNo, info->si_code );
+ VG_(message)(Vg_DebugMsg, "signal %d arrived ... si_code=%d",
+ sigNo, info->si_code );
}
vg_assert(sigNo >= 1 && sigNo <= _VKI_NSIG);