0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

gitwatch > die() > logを吐き出してexit(2)

Last updated at Posted at 2015-07-03

Don't die if pthread_setaffinity_np() fails. Fixes #695.

「die」って何かと見たら

die("Error in pthread_create(): %s", strerror(rv));

のような関数を実行しているようだった。


die()の定義

void die(const char *fmt, ...) {
    va_list args;
    va_start(args, fmt);
    vplog(LOG_LEVEL_ERR, fmt, args);
    va_end(args);
    exit(2);
}

vplog()でログをとってexit(2)するための処理らしい。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?