server: create sk_out_key earlier
authorJens Axboe <axboe@fb.com>
Mon, 14 Dec 2015 21:46:32 +0000 (14:46 -0700)
committerJens Axboe <axboe@fb.com>
Mon, 14 Dec 2015 21:46:32 +0000 (14:46 -0700)
commit9c0037824e313eb9bd7dbc53cf302a42ad011fa8
treea2c38bb1c25b2f10140d009910f76be2e582452a
parentea1cd03882314afae3efe0370ab95888de9ec827
server: create sk_out_key earlier

The previous code worked on Linux, since we seem to get '0' as
the key always. It segfaults on other platforms, since we
call pthread_getspecific() before the key has been created.

Signed-off-by: Jens Axboe <axboe@fb.com>
server.c