Project

General

Profile

Segmentation Fault when using C callback API » run.sh

Script that triggers error in semi-automated way: start script, open Website, wait for Signal/Crash - Tobias N, 09/19/2016 04:21 PM

 
#!/bin/bash

BLUE='\033[0;34m'
NO_COLOR='\033[0m'


application_pid=$(pgrep "application")
if [ -n "$application_pid" ]; then
echo -e -n "${BLUE}killing old instance... ${NO_COLOR}"
killall application
echo "done"
fi
$(sleep 8 && kill -USR1 $(pidof "application")) &
#xdg-open "http://localhost:8065" 2>/dev/null
$1 ./application --docroot . --http-address 0.0.0.0 --http-port 8065

(2-2/2)