Age | Commit message (Collapse) | Author |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
time is preserved, not tested
|
|
better
|
|
situations
|
|
|
|
|
|
|
|
|
|
|
|
|
|
server listen to insp wg directly
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
not using it now
|
|
Because only exit will still return cd error code, so no need to exit 1.
|
|
This `cc -Wall $(pkg-config --cflags --libs gsl --libs plplot) -o filename filename.c`
works well and I also take notes about old way. ccgp is not very useful
now because I'm more familiar with build process and I don't want to link
unnecessary libraries when require less libs.
|
|
|
|
|
|
|
|
|
|
|
|
Before when no internet, curl error "curl_easy_perform() failed:
Couldn't resolve host name" will cause `json_tokener_parse(chunk.response)`
to crash the program with error "Segmentation fault (core dumped)". I
guess maybe because chunk.response is NULL because curl error not assign
value to it. Now I check return error code of curl to break the loop and
wait a minute to see if error gone and proceed forward. Maybe also check
chunk.response and json function error code somehow.
|